//
//  RouteDetailTableViewCell.m
//  TeamProject_Travel
//
//  Created by lanou3g on 16/4/1.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "RouteDetailTableViewCell.h"

@implementation RouteDetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initLayout];
    }
    return self;
}

- (void)initLayout{
    self.typeView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 15, 30, 30)];
    [self.contentView addSubview:self.typeView];
    
    
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(60, 15, [UIScreen mainScreen].bounds.size.width - 70, 40)];
    self.titleLabel.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"2.jpg"]];
    [self.contentView addSubview:self.titleLabel];
    
    
    self.backImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 60, [UIScreen mainScreen].bounds.size.width - 20, [UIScreen mainScreen].bounds.size.width / 2)];
    [self.contentView addSubview:self.backImageView];
    
    
    self.descriptionLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(self.backImageView.frame) + 5, [UIScreen mainScreen].bounds.size.width - 30, 100)];
    self.descriptionLabel.numberOfLines = 0;
    self.descriptionLabel.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"3.jpg"]];
    [self.contentView addSubview:self.descriptionLabel];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
